Object.defineProperty(exports, "__esModule", {
  value: true
});
var $z1Tool = require("Tool");
var $z1Pool = require("Pool");
var cc__decorator = cc._decorator;
var ccp_ccclass = cc__decorator.ccclass;
var ccp_property = cc__decorator.property;
var def_DieEff2 = function (e) {
  function _ctor() {
    var t = null !== e && e.apply(this, arguments) || this;
    t.bodySpine = null;
    return t;
  }
  __extends(_ctor, e);
  _ctor.prototype.init = function () {
    this.bodySpine.setAnimation(0, "die" + $z1Tool.default.randomInt(1, 3), false);
  };
  _ctor.prototype.start = function () {
    var e = this;
    this.bodySpine.setCompleteListener(function () {
      e.node.parent.getComponent($z1Pool.default).destroyPoolItem(e.node);
    });
  };
  __decorate([ccp_property(sp.Skeleton)], _ctor.prototype, "bodySpine", undefined);
  return __decorate([ccp_ccclass], _ctor);
}(cc.Component);
exports.default = def_DieEff2;